package com.augurit.smartform.database.dialect;

/**
 * 默认值转换成数据库可识别默认值的转换类
 * @author cuigeqiang
 *
 */
public class DefaultConverter {
	private String prefix;
	private String suffix;
	public DefaultConverter(){}
	public DefaultConverter(String prefix, String suffix) {
		this.prefix = prefix;
		this.suffix = suffix;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
	public String getSuffix() {
		return suffix;
	}
	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	public String getDefaultValue(String value){
		String fullDefaultValue=this.prefix+value+this.suffix;
		return fullDefaultValue;
	}
}
